Public Class frmInforme
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents informe1 As Avaluacions.Informe
    Friend WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.informe1 = New Avaluacions.Informe
        Me.CrystalReportViewer1 = New CrystalDecisions.Windows.Forms.CrystalReportViewer
        Me.SuspendLayout()
        '
        'informe1
        '
        Me.informe1.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation
        Me.informe1.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize
        Me.informe1.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Upper
        Me.informe1.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default
        '
        'CrystalReportViewer1
        '
        Me.CrystalReportViewer1.ActiveViewIndex = -1
        Me.CrystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.CrystalReportViewer1.Location = New System.Drawing.Point(0, 0)
        Me.CrystalReportViewer1.Name = "CrystalReportViewer1"
        Me.CrystalReportViewer1.ReportSource = Me.informe1
        Me.CrystalReportViewer1.Size = New System.Drawing.Size(632, 362)
        Me.CrystalReportViewer1.TabIndex = 0
        '
        'frmInforme
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(632, 362)
        Me.Controls.Add(Me.CrystalReportViewer1)
        Me.Name = "frmInforme"
        Me.Text = "Informe"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub frmInforme_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TIP: Recuperem l'objecte que hem fet amb el dissenyador
        Dim rep As CrystalDecisions.CrystalReports.Engine.ReportDocument = Me.CrystalReportViewer1.ReportSource()
        'Posem el ACCESS
        rep.DataSourceConnections(0).SetConnection(AvaluacionsDB.BaseDades.MSAccessMDB, AvaluacionsDB.BaseDades.MSAccessMDB, "", "")
        'Aquest refresh no se si cal
        CrystalReportViewer1.RefreshReport()
    End Sub
End Class
